@REM 打包windows
set version=1.0.1
 

@REM 打包mac
set GOARCH=amd64
go env -w GOARCH=amd64
set GOOS=darwin
go env -w GOOS=darwin
call go build -o bin/%version%/swaggerToTs_%version%_mac_amd64 main.go

@REM 打包linux
set GOOS=linux
go env -w GOOS=linux
call go build -o bin/%version%/swaggerToTs_%version%_linux_amd64 main.go

call set GOOS=windows
call go env -w GOOS=windows
call go-winres make
call go build -o bin/%version%/swaggerToTs_%version%_win.exe -ldflags "-w -s"